
/**
 * extend controller
 */
module.exports = {
  /**
   * body getter
   */
  get body() {
 
  },
  /**
   * body setter
   */
  set body(value) {

  },
  /**
   * get client ip
   */
  get ip() {

  },
  /**
   * get client ips
   */
  get ips() {

  },
  /**
   * get status code
   */
  get status() {

  },
  /**
   * set status code
   */
  set status(status) {

  },
  /**
   * get content type
   */
  get type() {

  },
  /**
   * set content type
   */
  set type(contentType) {

  },
  /**
   * get userAgent header
   */
  get userAgent() {

  },
  /**
   * get request method
   */
  get method() {

  },
  /**
   * is get method
   */
  get isGet() {

  },
  /**
   * is post method
   */
  get isPost() {

  },
  /**
   * is command line invoke
   */
  get isCli() {

  },
  /**
   * get or set config
   * @param {String} name
   * @param {Mix} value
   * @param {String} m
   */
  config(name, value, m ) {

  },
  /**
   * is method
   * @param {String} method
   */
  isMethod(method) {

  },
  /**
   * check if is ajax request
   * @param {String} method
   */
  isAjax(method) {

  },
  /**
   * is jsonp request
   * @param {String} callback
   */
  isJsonp(callbackField) {

  },
  /**
   * send jsonp data
   */
  jsonp(data, callbackField) {

  },
  /**
   * send json data
   */
  json(data) {

  },
  /**
   * send success data
   */
  success(data, message) {

  },
  /**
   * send fail data
   */
  fail(errno, errmsg, data) {

  },
  /**
   * set expires header
   * @param {Number} time
   */
  expires(time) {

  },
  /**
   * get query data
   * @param {String} name
   * @param {Mixed} value
   */
  get(name, value) {

  },
  /**
   * get query data
   * @param {String} name
   * @param {Mixed} value
   */
  query(name, value) {

  },
  /**
   * get or set post data
   * @param {String} name
   * @param {Mixed} value
   */
  post(name, value) {

  },
  /**
   * get or set file data
   * @param {String} name
   * @param {Mixed} value
   */
  file(name, value) {

  },
  /**
   * get or set cookies
   * @param {String} name
   * @param {String} value
   * @param {Object} options
   */
  cookie(name, value, options) {

  },
  
  /**
   * get referer header
   */
  referrer(onlyHost) {
   
  },
  /**
   * get referer header
   */
  referer(onlyHost) {

  },
  /**
   * Perform a 302 redirect to `url`.
   * @param {String} url
   * @param {String} alt
   */
  redirect(url, alt) {
  
  },
 
  
  /**
   * download
   * @param {String} filepath
   * @param {String} filename
   */
  download(filepath, filename) {
   
  }
};
